package com.wql.service.impl;

import com.aaa.entity.GBrand;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wql.service.GBrandService;
import com.wql.mapper.GBrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 咕噜咕噜
* @description 针对表【g_brand(品牌)】的数据库操作Service实现
* @createDate 2023-03-07 16:47:05
*/
@Service
public class GBrandServiceImpl extends ServiceImpl<GBrandMapper, GBrand>
    implements GBrandService{

    @Autowired
    private  GBrandMapper gBrandMapper;
    @Override
    public Result selectAll() {
        QueryWrapper<GBrand> wrapper = new QueryWrapper<>();
        wrapper.eq("status",0);
        List<GBrand> gBrands = gBrandMapper.selectList(wrapper);
        return new Result(2000,"成功",gBrands);
    }
}




